package com.b2b.bean;

import java.io.Serializable;

/**
 * 版权：上海极和信息科技有限公司
 * 功能：来源基类
 * 作者：朱伟峰
 * 邮箱：zhuweifeng24@gmail.com
 * 日期：2017年5月25日
 */
@SuppressWarnings("serial")
public class SourceBean implements Serializable
{ 
	public static final String sources_web = "0";
	public static final String sources_ios = "1";
	public static final String sources_android = "2";
	public static final String sources_wx = "3";
	public static final String sources_h5 = "4";
	public static final String sources_admin = "5";
	public static final String sources_xcx = "6";
	
	private String sessionId = "";		// sessionId 
	private String source = "";			// 来源：0-网站、1-iPhone、2-Android、3-微信、4-H5、5-管理平台、6-小程序
	private String deviceID = "";		// 设备代码
	private String ip = "";				// IP地址：Tool.getIpAddress() 获取
	private String cookie = "";			// cookie
	private double geoX = 0d;			// 经度
	private double geoY = 0d;			// 纬度
	private long userId = 0L;			// 用户ID
	private long memberId = 0L;			// 企业ID
	
	@Override
	public String toString()
	{
		return String.format("{sessionID->[%s], source->[%s], IP->[%s]}", this.sessionId, this.source, this.ip);
	}

	public String getSessionId()
	{
		return sessionId;
	}

	public void setSessionId(String sessionId)
	{
		this.sessionId = sessionId;
	}

	public String getSource()
	{
		return source;
	}

	public void setSource(String source)
	{
		this.source = source;
	}

	public String getDeviceID()
	{
		return deviceID;
	}

	public void setDeviceID(String deviceID)
	{
		this.deviceID = deviceID;
	}

	public String getIp()
	{
		return ip;
	}

	public void setIp(String ip)
	{
		this.ip = ip;
	}

	public String getCookie()
	{
		return cookie;
	}

	public void setCookie(String cookie)
	{
		this.cookie = cookie;
	}

	public double getGeoX()
	{
		return geoX;
	}

	public void setGeoX(double geoX)
	{
		this.geoX = geoX;
	}

	public double getGeoY()
	{
		return geoY;
	}

	public void setGeoY(double geoY)
	{
		this.geoY = geoY;
	}

	public long getUserId()
	{
		return userId;
	}

	public void setUserId(long userId)
	{
		this.userId = userId;
	}

	public long getMemberId()
	{
		return memberId;
	}

	public void setMemberId(long memberId)
	{
		this.memberId = memberId;
	}
	
}
